Pattern |
Description |
(\\d{4} ){3}\\d{4} |
This pattern finds the standard 16-digit credit card number:
|
(\\(?\\d{3}\\)?-?)?\\d{3}-?\\d{4} |
This pattern matches phone numbers written in a format that is standard in the United States (though it sometimes will match numbers in a non-standard format). Numbers written in the following formats match this pattern:
Poorly formatted numbers this may match are:
|
\\d{3}-?\\d{2}-?\\d{4} |
This pattern matches social security numbers, whether or not they are delimited by dashes:
|
\\$(\\d|,\\d)+(\\.\\d\\d)? |
This pattern matches monetary amounts, preceded by a "$" sign:
|